package cc.sunwl.study.springboot2.entity;

import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Document(collection = "article")
public class Article {

    @Id
    private String id;
    private String title;
    private String content;
}
